package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * x就诊人对象 patient
 *
 * @author ruoyi
 * @date 2025-05-15
 */
public class Patient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 就诊人ID */
    private Long id;

    /** 就诊人姓名 */
    @Excel(name = "就诊人姓名")
    private String name;

    /** 与用户关系：本人、父母、子女等 */
    @Excel(name = "与用户关系：本人、父母、子女等")
    private Integer relation;

    /** 证件类型：身份证、护照等 */
    @Excel(name = "证件类型：身份证、护照等")
    private Long id_type;

    /** 证件号码 */
    @Excel(name = "证件号码")
    private String id_card;

    /** 就诊卡号 */
    @Excel(name = "就诊卡号")
    private String card_no;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 就诊人地址 */
    @Excel(name = "就诊人地址")
    private String address;

    /** 是否默认就诊人：0否，1是 */
    @Excel(name = "是否默认就诊人：0否，1是")
    private Integer is_default;

    /** 用户外键 */
    @Excel(name = "用户外键")
    private Long user_id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long hospital_area_id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long department_id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long doctor_id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long title_id;

    @Override
    public String toString() {
        return "Patient{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", relation=" + relation +
                ", id_type=" + id_type +
                ", id_card='" + id_card + '\'' +
                ", card_no='" + card_no + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", is_default=" + is_default +
                ", user_id=" + user_id +
                ", hospital_area_id=" + hospital_area_id +
                ", department_id=" + department_id +
                ", doctor_id=" + doctor_id +
                ", title_id=" + title_id +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getRelation() {
        return relation;
    }

    public void setRelation(Integer relation) {
        this.relation = relation;
    }

    public Long getId_type() {
        return id_type;
    }

    public void setId_type(Long id_type) {
        this.id_type = id_type;
    }

    public String getId_card() {
        return id_card;
    }

    public void setId_card(String id_card) {
        this.id_card = id_card;
    }

    public String getCard_no() {
        return card_no;
    }

    public void setCard_no(String card_no) {
        this.card_no = card_no;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getIs_default() {
        return is_default;
    }

    public void setIs_default(Integer is_default) {
        this.is_default = is_default;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public Long getHospital_area_id() {
        return hospital_area_id;
    }

    public void setHospital_area_id(Long hospital_area_id) {
        this.hospital_area_id = hospital_area_id;
    }

    public Long getDepartment_id() {
        return department_id;
    }

    public void setDepartment_id(Long department_id) {
        this.department_id = department_id;
    }

    public Long getDoctor_id() {
        return doctor_id;
    }

    public void setDoctor_id(Long doctor_id) {
        this.doctor_id = doctor_id;
    }

    public Long getTitle_id() {
        return title_id;
    }

    public void setTitle_id(Long title_id) {
        this.title_id = title_id;
    }
}
